using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SkillBlank
{
    private Skill m_Skill;

    private Button m_SkillTrigger;

    private Image m_SkillImage;

    public void SetSkill(Skill newSkill)
    {
        m_Skill = newSkill;

        m_SkillImage.sprite = newSkill.SkillData.SkillImage;

        m_SkillTrigger.onClick.RemoveAllListeners();

        m_SkillTrigger.onClick.AddListener(() => m_Skill.SkillAlgorithm());
    }
}
